<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
   <div class="itemtitle">
        <h3>{$Think.lang.announce.manage_announce}</h3>
        <ul class="tab1">
            <li class="current"><a href="__URL__/announcementList"><span>{$Think.lang.announce.all_announce}</span></a></li>
            <li><notempty name="rs"><a href="__URL__/editAnnouncement/announce_id/{$rs.announce_id}"><span>{$Think.lang.announce.edit_announce}</span></a><else/><a href="__URL__/addAnnouncement"><span>{$Think.lang.announce.add_announce}</span></a></notempty></li>
        </ul>
    </div>
    <form name="cpform" action="__URL__/manageAnnouncement" method="POST">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 fixpadding">
        <tr>
            <th>{$Think.lang.display_order}</th>
            <th>{$Think.lang.announce.subject}</th>
            <th>{$Think.lang.author}</th>
            <th>{$Think.lang.start_time}</th>
            <th>{$Think.lang.expire_time}</th>
            <th>{$Think.lang.actions}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="announceList" id="vo">
        <tr class="item">
            <td class="td25"><input type="text" class="txt" name="display_order[{$vo.announce_id}]" value="{$vo.display_order}"></td>
            <td><a href="{$vo.announce_id}" target="_blank">{$vo.subject|kg_substr=0,50}</a></td>
            <td><a href="{$vo.author_id|format_user_url=$vo['author_name']}" target="_blank">{$vo.author_name}</a></td>
            <td>{$vo.start_time|format_date='Y-m-d'}</td>
            <td>{$vo.expire_time|format_date='Y-m-d'}</td>
            <td>
                <a class="act" href="__URL__/editAnnouncement/announce_id/{$vo.announce_id}">{$Think.lang.edit}</a>
            </td>
            <td><input type="checkbox" class="checkbox" name="mods[{$vo.announce_id}]" value="{$vo.announce_id}" /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="6">
                <div class="fixsel right">
                    <input class="btn" type="submit" value="{$Think.lang.submit}" />
                </div>
            </td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'mods')" /><label for="chkall">{$Think.lang.delete}?</label></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
